package net.wanho.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.wanho.dto.AssignRoleDTO;
import net.wanho.dto.UserInfoDTO;
import net.wanho.dto.UserUpdDTO;
import net.wanho.po.AuthInfo;
import net.wanho.po.UserInfo;
import net.wanho.vo.PageInfo;

import java.util.List;

/**
 * @author 32033
 * @description 针对表【user_info(用户表)】的数据库操作Service
 * @createDate 2025-01-11 17:01:23
 */
public interface UserInfoService extends IService<UserInfo> {

    List<AuthInfo> findAuthList();

    PageInfo<UserInfo> listPage(Integer pageNum, Integer pageSize, UserInfoDTO userInfoDTO);

    void addUser(UserInfo userInfo);

    void updateStateById(UserInfo userInfo);

    void updateByUserId(UserUpdDTO userUpdDTO);

    void removeByUserId(Integer id);

    void removeByUserIds(List<Integer> ids);

    void updatePwd(Integer id);


    void saveAssignRole(AssignRoleDTO assignRole);

    List<Integer> getUserAuthList(Integer userId);
}
